package com.zxq.uart.controller;


import com.zxq.uart.frame.decoder._37SetFloatResult;
import com.zxq.uart.frame.encoder._37SetFloatCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _37SetFloatController extends PlatformExchange<_37SetFloatCmd, _37SetFloatResult> {


    @Override
    public Integer getCmd() {
        return 0x37;
    }

    @PostMapping("exchange/37")
    @Override
    public ResultVO<_37SetFloatResult> exchange(@RequestBody _37SetFloatCmd order) {
        return super.exchange(order);
    }

    @Override
    public _37SetFloatResult getResult() {
        return new _37SetFloatResult();
    }
}
